package cn.krui.helper.tools;

/**
 * @author zc
 */
public class ValueSpan {
  private int rowSpan;
  
  private int colSpan;
  
  private Object value;
  
  private String formula;
  
  private Byte error;
  
  private String commentBody;
  
  private String commentAuthor;
  
  public ValueSpan(Object value) {
    this(value, 1, 1);
  }
  
  public ValueSpan(Object value, int rowSpan, int colSpan) {
    this(value, rowSpan, colSpan, (String)null, (String)null);
  }
  
  public ValueSpan(Object value, int rowSpan, int colSpan, Byte error) {
    this(value, rowSpan, colSpan, error, (String)null, (String)null);
  }
  
  public ValueSpan(Object value, int rowSpan, int colSpan, String commentBody, String commentAuthor) {
    this(value, rowSpan, colSpan, (Byte)null, commentBody, commentAuthor);
  }
  
  public ValueSpan(Object value, int rowSpan, int colSpan, Byte error, String commentBody, String commentAuthor) {
    this.value = value;
    this.rowSpan = rowSpan;
    this.colSpan = colSpan;
    this.error = error;
    this.commentBody = commentBody;
    this.commentAuthor = commentAuthor;
  }
  
  public ValueSpan(String formula) {
    this(formula, 1, 1);
  }
  
  public ValueSpan(String formula, int rowSpan, int colSpan) {
    this(formula, rowSpan, colSpan, (Byte)null, (String)null, (String)null);
  }
  
  public ValueSpan(String formula, int rowSpan, int colSpan, Byte error) {
    this(formula, rowSpan, colSpan, error, (String)null, (String)null);
  }
  
  public ValueSpan(String formula, int rowSpan, int colSpan, String commentBody, String commentAuthor) {
    this(formula, rowSpan, colSpan, (Byte)null, commentBody, commentAuthor);
  }
  
  public ValueSpan(String formula, int rowSpan, int colSpan, Byte error, String commentBody, String commentAuthor) {
    this.formula = formula;
    this.rowSpan = rowSpan;
    this.colSpan = colSpan;
    this.error = error;
    this.commentBody = commentBody;
    this.commentAuthor = commentAuthor;
  }
  
  public int getRowSpan() {
    return this.rowSpan;
  }
  
  public void setRowSpan(int rowSpan) {
    this.rowSpan = rowSpan;
  }
  
  public int getColSpan() {
    return this.colSpan;
  }
  
  public void setColSpan(int colSpan) {
    this.colSpan = colSpan;
  }
  
  public Object getValue() {
    return this.value;
  }
  
  public void setValue(Object value) {
    this.value = value;
  }
  
  public String getFormula() {
    return this.formula;
  }
  
  public void setFormula(String formula) {
    this.formula = formula;
  }
  
  public Byte getError() {
    return this.error;
  }
  
  public void setError(Byte error) {
    this.error = error;
  }
  
  public String getCommentBody() {
    return this.commentBody;
  }
  
  public void setCommentBody(String commentBody) {
    this.commentBody = commentBody;
  }
  
  public String getCommentAuthor() {
    return this.commentAuthor;
  }
  
  public void setCommentAuthor(String commentAuthor) {
    this.commentAuthor = commentAuthor;
  }
}
